//
//  FXAlertViewUtility.h
//  iosrdk
//
//  Created by Fxkp01 on 2022/8/24.
//  Copyright © 2022 foxit. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// alert 点击事件
typedef void (^FXAlertButtonActionBlock)(void);

/// Alert 相关
@interface FXAlertViewUtility : NSObject

/// 弹出alert - 1个按钮
/// @param viewController viewController
/// @param title title
/// @param message message
/// @param cancaleTitle cancaleTitle
/// @param buttonActionBlock 按钮点击事件 - 若设置为nil 则无事件
+ (void)showAlertInController:(UIViewController *)viewController
                       titile:(nullable NSString *)title
                      message:(nullable NSString *)message
                  cancelTitle:(NSString *)cancaleTitle
                  buttonBlock:(FXAlertButtonActionBlock)buttonActionBlock;

/// 弹出alert - 两个按钮
/// @param viewController viewController
/// @param title title
/// @param message message
/// @param cancaleTitle cancaleTitle
/// @param otherButtonTitle otherButtonTitle
/// @param cancelBlock 取消按钮点击事件
/// @param buttonActionBlock 按钮点击事件
+ (void)showAlertInController:(UIViewController *)viewController
                       titile:(nullable NSString *)title
                      message:(nullable NSString *)message
                  cancelTitle:(NSString *)cancaleTitle
             otherButtonTitle:(NSString *)otherButtonTitle
                  cancelBlock:(FXAlertButtonActionBlock)cancelBlock
                  buttonBlock:(FXAlertButtonActionBlock)buttonActionBlock;


/// 授权更新校验弹框
/// @param viewController viewController
/// @param buttonActionBlock 确认按钮事件
+ (void)showUpdateSnAlertInController:(UIViewController *)viewController
                          buttonBlock:(FXAlertButtonActionBlock)buttonActionBlock;
@end

NS_ASSUME_NONNULL_END
